package org.cs.publics.model;
// Generated 2018-12-28 17:39:08 by Hibernate Tools 5.2.3.Final

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * 用户充值信息记录表
 */

/**
 * UserRecharge generated by hbm2java
 */
@Entity
@Table(name = "user_recharge", catalog = "good_fresh")
public class UserRecharge implements java.io.Serializable {

	private Integer userRechargeId;
	private UserInfo userInfo;
	private Long userRechargeMoney;
	private Date userRechargeTime;
	private Integer userRechargeState;
	private Integer userRechargeType;
	private Date createTime;
	private Date updateTime;
	private String goodsHoldOne;
	private String goodsHoldTwo;

	public UserRecharge() {
	}

	public UserRecharge(UserInfo userInfo, Long userRechargeMoney, Date userRechargeTime, Integer userRechargeState,
			Integer userRechargeType, Date createTime, Date updateTime, String goodsHoldOne, String goodsHoldTwo) {
		this.userInfo = userInfo;
		this.userRechargeMoney = userRechargeMoney;
		this.userRechargeTime = userRechargeTime;
		this.userRechargeState = userRechargeState;
		this.userRechargeType = userRechargeType;
		this.createTime = createTime;
		this.updateTime = updateTime;
		this.goodsHoldOne = goodsHoldOne;
		this.goodsHoldTwo = goodsHoldTwo;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)

	@Column(name = "USER_RECHARGE_ID", unique = true, nullable = false)
	public Integer getUserRechargeId() {
		return this.userRechargeId;
	}

	public void setUserRechargeId(Integer userRechargeId) {
		this.userRechargeId = userRechargeId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "USER_INFO_ID")
	public UserInfo getUserInfo() {
		return this.userInfo;
	}

	public void setUserInfo(UserInfo userInfo) {
		this.userInfo = userInfo;
	}

	@Column(name = "USER_RECHARGE_MONEY", precision = 10, scale = 0)
	public Long getUserRechargeMoney() {
		return this.userRechargeMoney;
	}

	public void setUserRechargeMoney(Long userRechargeMoney) {
		this.userRechargeMoney = userRechargeMoney;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "USER_RECHARGE_TIME", length = 19)
	public Date getUserRechargeTime() {
		return this.userRechargeTime;
	}

	public void setUserRechargeTime(Date userRechargeTime) {
		this.userRechargeTime = userRechargeTime;
	}

	@Column(name = "USER_RECHARGE_STATE")
	public Integer getUserRechargeState() {
		return this.userRechargeState;
	}

	public void setUserRechargeState(Integer userRechargeState) {
		this.userRechargeState = userRechargeState;
	}

	@Column(name = "USER_RECHARGE_TYPE")
	public Integer getUserRechargeType() {
		return this.userRechargeType;
	}

	public void setUserRechargeType(Integer userRechargeType) {
		this.userRechargeType = userRechargeType;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "CREATE_TIME", length = 19)
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "UPDATE_TIME", length = 19)
	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	@Column(name = "GOODS_HOLD_ONE", length = 25)
	public String getGoodsHoldOne() {
		return this.goodsHoldOne;
	}

	public void setGoodsHoldOne(String goodsHoldOne) {
		this.goodsHoldOne = goodsHoldOne;
	}

	@Column(name = "GOODS_HOLD_TWO", length = 25)
	public String getGoodsHoldTwo() {
		return this.goodsHoldTwo;
	}

	public void setGoodsHoldTwo(String goodsHoldTwo) {
		this.goodsHoldTwo = goodsHoldTwo;
	}

}
